package com.ttt.gdfood.service;

import com.ttt.gdfood.mapper.ThumbsUpMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ThumbsUpService {
    @Autowired
    ThumbsUpMapper thumbsUpMapper;
    // 根据收藏的笔记id删除
    public void delThumbsupByTnid(int tn_id){
        thumbsUpMapper.delThumbsupByTnid(tn_id);
    }

    // 加收藏笔记
    public void insertThumbsup(int uid,int tn_id) {
        thumbsUpMapper.insertThumbsup(uid,tn_id);
    }
}
